package contegor.scire.core;


/**
 * Long based {@link IdFragment}.
 *
 * @version $Revision$
 * @author  Héctor Cirbián Pousa ($Author$)
 */
public class LongIdFragment extends NumericIdFragment {
  private static final long serialVersionUID = 9011094533827948208L;

  protected long number;

  public LongIdFragment(long number) {
    super();
    this.number = number;
  }

  @Override
  public int hashCode() {
    return (int)this.number;
  }

  @Override
  public String toString() {
    return String.valueOf(this.number);
  }

  @Override
  public Number getNumber() {
    return number;
  }
}
